package com.lwm.killer.dao;

import com.lwm.killer.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface UserDao {
    @Select("select * from user where id = #{id}")
    public  User getById(@Param("id")long id);
}

//
//@Mapper
//public interface UserDao {
//
//    @Select("select * from user where id = #{id}")
//    public User getById(@Param("id") int id);
//
//
//    @Insert("insert into  user (id,name) values (#{id},#{name}) ")
//    public  int  insertUser(User user);
//
//
//
//}